package lf39.smptools;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class SmptoolsApplication {

    public static void main(String[] args) {
        SpringApplication.run(SmptoolsApplication.class, args);
    }

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(Model model){
        String name = "jiangbei";
        model.addAttribute("name", name);
        return "hello";
    }
}
